home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-11 | 3.8 KB | 221 lines | [TEXT/MPS ] |
- ;
- ; File: CMComponent.a
- ;
- ; Copyright: © 1984-1994 by Apple Computer, Inc.
- ; All rights reserved.
- ;
- ; Version: Universal Interfaces 2.0a3 ETO #16, MPW prerelease. Friday, November 11, 1994.
- ;
- ; Bugs?: If you find a problem with this file, send the file and version
- ; information (from above) and the problem description to:
- ;
- ; Internet: apple.bugs@applelink.apple.com
- ; AppleLink: APPLE.BUGS
- ;
- ;
-
- IF &TYPE('__CMCOMPONENT__') = 'UNDEFINED' THEN
- __CMCOMPONENT__ SET 1
-
-
- IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
- include 'Types.a'
- ENDIF
- ; include 'ConditionalMacros.a' ;
-
- IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
- include 'Quickdraw.a'
- ENDIF
- ; include 'MixedMode.a' ;
- ; include 'QuickdrawText.a' ;
-
- IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
- include 'Components.a'
- ENDIF
-
- IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
- include 'Windows.a'
- ENDIF
- ; include 'Memory.a' ;
- ; include 'Events.a' ;
- ; include 'OSUtils.a' ;
- ; include 'Controls.a' ;
- ; include 'Menus.a' ;
-
- IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
- include 'CMApplication.a'
- ENDIF
- ; include 'Printing.a' ;
- ; include 'Errors.a' ;
- ; include 'Dialogs.a' ;
- ; include 'TextEdit.a' ;
-
- CMInterfaceVersion EQU 0
-
- ; CMM Component function selectors
- kCMInit EQU 0
- kCMMatchColors EQU 1
- kCMGamutTest EQU 2
- kCMMatchPixMap EQU 3
- kCMCheckPixMap EQU 4
- kCMConcatenateProfiles EQU 5
-
- ; Profile Responder Components
- ProfileResponderInterfaceRev EQU 0
-
- ; ProfileResponder Component function selectors
- kCMGetProfile EQU 0
- kCMSetProfile EQU 1
- kCMSetProfileDescription EQU 2
- kCMGetIndexedProfile EQU 3
- kCMDeleteDeviceProfile EQU 4
- kProfileResponderMaxSelector EQU kCMDeleteDeviceProfile
-
- ; Required CMM Component routines
- IF GENERATING68K THEN
- Macro
- _CMInit
- dc.w $2F3C
- dc.w $0008
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMInit
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMMatchColors
- dc.w $2F3C
- dc.w $0008
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMMatchColors
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMCheckColors
- dc.w $2F3C
- dc.w $000C
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMCheckColors
- ENDIF
-
- ; Optional CMM Component routines
- IF GENERATING68K THEN
- Macro
- _CMMatchPixMap
- dc.w $2F3C
- dc.w $000C
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMMatchPixMap
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMCheckPixMap
- dc.w $2F3C
- dc.w $0010
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMCheckPixMap
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMConcatenateProfiles
- dc.w $2F3C
- dc.w $000C
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMConcatenateProfiles
- ENDIF
-
- ; ProfileResponder Component routines
- IF GENERATING68K THEN
- Macro
- _CMGetProfile
- dc.w $2F3C
- dc.w $0008
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMGetProfile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMSetProfile
- dc.w $2F3C
- dc.w $0004
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMSetProfile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMSetProfileDescription
- dc.w $2F3C
- dc.w $0008
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMSetProfileDescription
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMGetIndexedProfile
- dc.w $2F3C
- dc.w $000C
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMGetIndexedProfile
- ENDIF
-
- IF GENERATING68K THEN
- Macro
- _CMDeleteDeviceProfile
- dc.w $2F3C
- dc.w $0004
- dc.w $0000
- moveq #0,d0
- dc.w $A82A
- EndM
- ELSE
- IMPORT CMDeleteDeviceProfile
- ENDIF
-
- ENDIF ; __CMCOMPONENT__
-